use crate::closures_use_param::test_closures_use_param;
use crate::demo1_closures_use::test_closures_use;
use crate::closures_fn::test_closures_fn;

pub mod closures_use_param;
pub mod demo1_closures_use;
pub mod closures_fn;

fn main() {

    // 演示闭包的使用
    test_closures_use();

    // 演示闭包获取参数.
    test_closures_use_param();
    
    test_closures_fn();
    
}

